﻿<UserControl xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  x:Class="SLApp.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:NsSLTest="clr-namespace:SLResLib;assembly=SLResLib"            
    Width="400" Height="400"       >
    <UserControl.Resources >
        <NsSLTest:SLTestRes x:Name="SLRes"  ></NsSLTest:SLTestRes>
    </UserControl.Resources> 
    <Grid x:Name="LayoutRoot" Background="OrangeRed" >
        <StackPanel DataContext="{StaticResource SLRes}" >
            <Button Name="btnName" Content="{Binding Name,Source={StaticResource SLRes}}"></Button>
            <basics:Calendar Background="PowderBlue" UseLayoutRounding="True" ></basics:Calendar>
            <TextBlock Name="lblAge" Text="{Binding Age}"></TextBlock>
        </StackPanel>
    </Grid>
</UserControl>
